package com.lb.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;
@Data
@TableName("dishes")
public class Dish {
    @TableId("dishid")
    private int dishId;

    @TableField("categoryid")
    private int categoryId;

    @TableField("dishname")
    private String dishName;

    @TableField("dishprice")
    private double dishPrice;

    @TableField("dishdescription")
    private String dishDescription;

    @TableField("dishimage")
    private String dishImage;

    @TableField("isrecommend")
    private boolean isRecommend;

    @TableField("createtime")
    private LocalDateTime createTime;

    @TableField("updatetime")
    private LocalDateTime updateTime;

    // 如果需要在Dish类中直接包含分类名称，可以添加以下字段
    // 注意：这个字段在数据库中可能不存在，具体取决于您的数据库设计
    @TableField("categoryname")
    private String categoryName;
}